package cn.edu.zafu.bigdata.x.xiejunjie;

public class Vehicle {
    public void move() {
        System.out.println("Vehicle is moving.");
    }
}


class Car extends Vehicle {
    public void move() {
        System.out.println("Car is moving.");
    }
}

class Bicycle extends Vehicle {
    public void move() {
        System.out.println("Bicycle is moving.");
    }
}